package org.rico.springsecurity.helloworld.controller;

import javax.annotation.PostConstruct;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class FirstController {

	@RequestMapping("/hello-world")
	@ResponseBody
	public String sayHello() {
		return "HelloWorld!";
	}
	
	@PostConstruct
	public void testConstruct(){
		System.out.println("Initialized!");
	}
	
	public FirstController(){
		System.out.println("..............................................");
	}
}
